import unittest
import requests

from ddt import ddt, file_data

@ddt
class shopping(unittest.TestCase):
    host = 'http://10.59.9.18'
    # 登录
    @file_data('dl.yaml')
    def test_movie_login_01(self, phone, pwd):
        url = shopping.host + '/small/user/v1/login'
        json = {"phone": phone, "pwd": pwd}
        login = requests.post(url=url, data=json)
        print(login.json())


if __name__ == '__main__':
    unittest.main()